﻿namespace VirtualTournaments.MatchProvider
{
	public class ShowableEvent
	{
		public long cicle;
		public string team;
		public int participant;
		public string eventDescription;
		public string fullEventDescription;

		public ShowableEvent(long xCicle, string xTeam, int xParticipant, string xEventDescription)
		{
			cicle = xCicle;
			team = xTeam;
			participant = xParticipant;
			eventDescription = xEventDescription;
			switch (eventDescription)
			{
				case "golEnContra": fullEventDescription = "Own Goal"; break;
				case "amarilla": fullEventDescription = "Yellow card"; break;
				case "roja": fullEventDescription = "Red card"; break;
				case "gol": fullEventDescription = "Goal!"; break;
				default: fullEventDescription = "Fault"; break;
			}
		}
	}
}
